﻿namespace Devonline.Entity;

/// <summary>
/// 反馈, 字符串主键的默认实现
/// </summary>
[Table("feedback"), DisplayName("反馈")]
public class Feedback : Feedback<string>
{
    /// <summary>
    /// 用户个人信息
    /// </summary>
    public virtual Personal? Personal { get; set; }
}

/// <summary>
/// 反馈
/// </summary>
[Table("feedback"), DisplayName("反馈")]
public abstract class Feedback<TKey> : EntitySetWithBusiness<TKey> where TKey : IConvertible
{
    /// <summary>
    /// 业务类型
    /// </summary> 
    [Column("business_type"), DisplayName("业务类型"), MaxLength(128), Excel]
    public override string? BusinessType { get; set; }
    /// <summary>
    /// 用户个人信息
    /// </summary>
    [Column("personal_id"), DisplayName("个人信息编号"), MaxLength(36), Excel]
    public virtual TKey? PersonalId { get; set; }
    /// <summary>
    /// 内容
    /// </summary>
    [Column("content"), DisplayName("内容"), Required, MaxLength(1024), Excel]
    public virtual string? Content { get; set; }
}